<%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%>
<!--#include file="../connections/connect.asp" -->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>

<body>
<%
		var quesName = Request.QueryString("quesName")
		var sql1 = "Select*From RestorePassword WHERE QuestionContent = '"+quesName+"'"
		var test = conn.Execute(sql1);
		if(!test.EOF){
			Response.Write("That question is existed, Try again")
		}
		else {			
			var sql2 = "Insert INTO RestorePassword (QuestionContent) VALUES('"+quesName+"')"
			var list=conn.Execute(sql2)		
			Response.Redirect("../question.asp")
		}
	%>

</body>
</html>
